package cn.smbms.service.impl;

import cn.smbms.dao.bill.BillMapper;
import cn.smbms.pojo.Bill;
import cn.smbms.service.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "billService")
public class BillServiceImpl implements BillService {
    @Autowired
    private BillMapper billMapper;

    @Override
    public int update(Bill bill) {
        return billMapper.update(bill);
    }

    @Override
    public int del(int id) {
        return billMapper.del(id);
    }

    @Override
    public int add(Bill bill) {
        return billMapper.add(bill);
    }
}
